package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.util.PageResult;

import java.util.List;

public interface BaseService<T> {
    void insert(T t);
    void delete(Long id);
    void update(T t);
    T selectById(Long id);
    List<T> selectAll();

    void patchDelete(List<Long> ids);

    PageResult<T> selectByQueryPage(BaseQuery query);

}
